<template>
  <div>
    事件总线（Bus）进行兄弟组件通信
    <ChildComponentA/>
    <ChildComponentB/>
  </div>
</template>
  
  <script>
  import { ref } from 'vue';
  import ChildComponentA from './eventBus_A.vue';
  import ChildComponentB from './eventBus_B.vue';
  export default {
    components: { ChildComponentA,ChildComponentB },
    methods: {
      handleMessageFromChild(message) {
        console.log(message);
      }
    }
  };
  </script>
  